home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
- Path: cwi.nl!dik
- From: dik@cwi.nl (Dik T. Winter)
- Subject: Re: Access carry flag from C
- Message-ID: <Dnz59q.KAw@cwi.nl>
- Sender: news@cwi.nl (The Daily Dross)
- Nntp-Posting-Host: chrysant.cwi.nl
- Organization: CWI, Amsterdam
- References: <4hhbt8$1d3o@b.stat.purdue.edu> <Dnssxu.JGy@cwi.nl> <4hjm75$18u8@b.stat.purdue.edu>
- Date: Sat, 9 Mar 1996 00:27:25 GMT
-
- In article <4hjm75$18u8@b.stat.purdue.edu> hrubin@b.stat.purdue.edu (Herman Rubin) writes:
- > On machines without the carry bit, an efficient mp routine would
- > use a few less bits in the word, so that all these tests would
- > not be needed. One is rarely interested in EXACTLY double the
- > precision provided by the hardware, just as one is rarely interested
- > in exactly the precision of the hardware.
-
- Indeed. I have some efficient mp routines (at least, I think they are
- efficient), taylored to some 30 different architectures with assembly.
- On *none* of these implementations did I use the carry flag but I *did*
- use a few less bits. The ease of using the carry bit and the better
- speed is far outweighed by the increased complexity of (especially)
- the mp division.
- --
- dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924098
- home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
-